package demo_basic.helloTriangle;

public class Tpoint {
	double x, y;

	public Tpoint(double px, double py) {
		x = px;
		y = py;
	}

	public static double Dinstance(Tpoint p1, Tpoint p2) {
		return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));
	}
}
